<?php
use Framework\Session;
?>
<?php $successMessage= Session::getFlashMessage('success message'); ?>
<?php if($successMessage !== null) : ?>
    <div class="message bg-green-100 p-3 my-3">
        <?= $success_message ?>
    </div>
    
<?php endif; ?>
<?php $erroressage = Session::getFlashMessage('error message'); ?>
<?php if($errorMessage !== null) :?>
    <div class="message by-red-100 p-3 my-3">
        <?= $error_meaasge ?>
    </div>
    
<?php endif; ?>